<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }

        .f{
            width: 400px;
            position: relative;
            margin: auto;
        }

        img{
            width: 400px;
            height: 300px;
        }

        button{
            position: absolute;
        }

        .b1{
            left: 0;
            top: 145px;
        }
        .b2{
            right: 0;
            top: 145px;
        }
    </style>
</head>
<body>
    <div class="f">
        <img src="../image/1.jpg" alt="">
        <button class="b1"><</button>
        <button class="b2">></button>
    </div>

</body>
</html>